/**
 * 
 */
package ru.etu.game;

/**
 * @author Alucard
 * @author Neko
 * 
 * Класс точка из трех декартовых координат.
 */
public class Point {	
	/**
	 * @param x	
	 * @param y
	 * @param z
	 */
	public Point(int x, int y, int z) {
		super();
		this.x = x;
		this.y = y;
		this.z = z;
	}
	/**
	 * @return the x
	 */
	public int getX() {
		return x;
	}

	/**
	 * @param x the x to set
	 */
	public void setX(int x) {
		this.x = x;
	}
	/**
	 * @return the y
	 */
	public int getY() {
		return y;
	}
	/**
	 * @param y the y to set
	 */
	public void setY(int y) {
		this.y = y;
	}
	/**
	 * @return the z
	 */
	public int getZ() {
		return z;
	}
	/**
	 * @param z the z to set
	 */
	public void setZ(int z) {
		this.z = z;
	}
	public Point minus(Point p) {
		return new Point(x-p.x, y-p.y, z-p.z);		
	}	
	public Point plus(Point p) {
		return new Point(x+p.x, y+p.y, z+p.z);
	}	
	private int x,y,z;
}
